home *** CD-ROM | disk | FTP | other *** search
/ Chip 2007 January, February, March & April / Chip-Cover-CD-2007-02.iso / Pakiet bezpieczenstwa / mini Pentoo LiveCD 2006.1 / mpentoo-2006.1.iso / livecd.squashfs / usr / lib / python2.4 / test / test_codecmaps_hk.py < prev    next >
Text File  |  2005-10-18  |  760b  |  26 lines

  1. #!/usr/bin/env python
  2. #
  3. # test_codecmaps_hk.py
  4. #   Codec mapping tests for HongKong encodings
  5. #
  6. # $CJKCodecs: test_codecmaps_hk.py,v 1.1 2004/07/10 17:35:20 perky Exp $
  7.  
  8. from test import test_support
  9. from test import test_multibytecodec_support
  10. import unittest
  11.  
  12. class TestBig5HKSCSMap(test_multibytecodec_support.TestBase_Mapping,
  13.                        unittest.TestCase):
  14.     encoding = 'big5hkscs'
  15.     mapfilename = 'BIG5HKSCS.TXT'
  16.     mapfileurl = 'http://people.freebsd.org/~perky/i18n/BIG5HKSCS.TXT'
  17.  
  18. def test_main():
  19.     suite = unittest.TestSuite()
  20.     suite.addTest(unittest.makeSuite(TestBig5HKSCSMap))
  21.     test_support.run_suite(suite)
  22.  
  23. test_multibytecodec_support.register_skip_expected(TestBig5HKSCSMap)
  24. if __name__ == "__main__":
  25.     test_main()
  26.